package com.ght.springboot.query;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 多子句查询模板
 * @author: haitao.gao
 * @create: 2019-02-12 15:26
 **/
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@NoArgsConstructor
@AllArgsConstructor
public class Bool {

    /**
     * 包含
     */
    @JsonProperty("must")
    private SentenceTemple must;

    /**
     * 不包含
     */
    @JsonProperty("must_not")
    private SentenceTemple mustNot;

    /**
     * 可能包含
     */
    @JsonProperty("should")
    private SentenceTemple should;

    public Bool(SentenceTemple must){
        this.must = must;
    }

}
